package com.cardone.platform.usercenter.service;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import org.springframework.cache.annotation.CacheEvict;

import com.cardone.platform.usercenter.dao.UsercenterDao;

/**
 * 用户中心服务
 * 
 * @author yaoht
 * 
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class UsercenterDefaultService implements UsercenterService {
	/**
	 * 部门服务
	 */
	private OrgService orgService;

	/**
	 * 用户中心数据持久
	 */
	private UsercenterDao usercenterDao;

	/**
	 * 用户服务
	 */
	private UserService userService;

	@Override
	@CacheEvict(value = UsercenterService.BEAN_ID, allEntries = true)
	public void reload() {
		this.usercenterDao.reload();
	}
}